class Setting < ActiveRecord::Base
  
  SETTINGS = {"sys_name" => "iWebStore开源商城",
              "sys_title" => "欢迎使用iWebStore网店系统",
              "sys_keywords" => "iWebStore，网店，网上商城",
              "sys_description" => "iWebStore 是一款面向独立卖家的单用户网店系统",
              "sys_company" => "Win322 Software Studio",
              "sys_copyright" => "Copyright © 2011-2012",
              "sys_icp" => "地球ICP备00000001号",
              "sys_countjs" => "",
              "member" => "1",
              "member_info" => "会员系统升级中...",
              "sys_registerinfo" => "",
              "sys_kftelphone" => "",
              "sys_kfqq" => "",
              "email_send" => "1",
              "sys_smtpserver" => "smtp.qq.com",
              "sys_smtpserverport" => "25"
              }
  
  def self.import_data
    setting = Setting.new
    setting.save!
#    SETTINGS.each do |key, val|
#      setting = Setting.new({:name => key, :value => val})
#      setting.save!
#    end
  end
  
end
